package com.group.www.dao.impl;

import com.group.www.pojo.CartInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CartInfoDao {
    public List<CartInfo> queryCartInfoByuserid(Integer userId);
    public boolean add(CartInfo cartInfo);
    public boolean update(@Param(value = "userid") Integer userId, @Param(value = "goodsid") Integer goodsId, @Param(value = "goodsnums") Integer goodsNums);
    public boolean deleteCartInfoby(@Param(value = "userid") Integer userId, @Param(value = "goodsid") Integer goodsId);
    public List query();
    public  boolean updateCart(CartInfo entity);
}
